#!/usr/bin/env bash
set -e
mkdir -p /opt/tmp/

wget https://github.com/alibaba/canal/releases/download/canal-1.0.24/canal.deployer-1.0.24.tar.gz
mkdir /opt/canal

tar -zxvf canal.deployer-1.0.24.tar.gz -C /opt/canal

mv canal.deployer-1.0.24.tar.gz /opt/tmp/

